package com.fita.admin.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.fita.entity.client.Client;

/**
 *
 */
@Dao("hibernate")
public interface ClientDao {

    /**
     *
     * @param phone
     * @return
     */
    @Query("FROM Client WHERE disabled = false AND phone = :phone")
    Client loadByPhone(@Variable("phone") String phone);

}
